#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>

int main(int argc,char **argv){

    if(argc <2){
        perror("文件参数错误\n");
        exit(0);
    }
    FILE *pfile = fopen(argv[1],"r");
    if (pfile == NULL)
    {
        perror("文件打开错误");
        exit(0);
    }
    fseek(pfile,0,SEEK_END);
    int size = ftell(pfile);
    printf(" 文件的大小：%d \n",size);
    


   return 0;
}